package zhaoyong.wang.mybatisbasics.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import zhaoyong.wang.mybatisbasics.pojo.User;

@Mapper
public interface EmpMapper {
  /*  @Delete("delete from tb_emp where id = #{id}")
    public void delete(Integer id);*/
    @Insert("insert into tb_emp(username, password, name, gender, image, job, entrydate, dept_id, create_time, update_time)VALUES (#{username},#{password},#{name},#{gender},#{image},#{job},#{entrydate},#{deptId},#{createTime},#{updateTime})")
    public void insert(User user);
}
